package com.whmw.mybatisplusdemo.config;

/**
 * @author 陈秋雨
 * @since 2025/07/13 下午 10:12
 */
public class BaseContext {
    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        threadLocal.set(id);
    }

    public static Long getCurrentId() {
        return threadLocal.get();
    }

}